package com.yy.enums;

import lombok.Getter;

import java.util.*;

/**
 * @author young
 * @date 2022/12/14 17:35
 * @description: 结果属性枚举集
 */
@Getter
public enum ResultEnum {
    /*数据获取成功*/
    SUCCESS(200,"数据操作成功！","success"),
    /*数据获取失败*/
    FAIL(400,"数据操作失败","warning"),
    /*数据获取过程出错*/
    ERROR(500,"数据操作过程出错","error");
    
    private final Integer code;
    private final String msg;
    private final String type;
    ResultEnum(int code, String msg,String type) {
        this.code = code;
        this.msg = msg;
        this.type = type;
    }

}
